package com.ruoyi.comment.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论箱对象 sys_comment
 * 
 * @author 张富饶
 * @date 2025-05-21
 */
public class Comment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 商品评分（1-5分） */
    @Excel(name = "商品评分", readConverterExp = "1=-5分")
    private Integer rating;

    /** 状态（0-待审核 1-已展示 2-已删除） */
    @Excel(name = "状态", readConverterExp = "0=-待审核,1=-已展示,2=-已删除")
    private Integer status;

    /** 地点ID */
    @Excel(name = "地点ID")
    private Long placeId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setRating(Integer rating) 
    {
        this.rating = rating;
    }

    public Integer getRating() 
    {
        return rating;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setPlaceId(Long placeId) 
    {
        this.placeId = placeId;
    }

    public Long getPlaceId() 
    {
        return placeId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("productId", getProductId())
            .append("content", getContent())
            .append("rating", getRating())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("placeId", getPlaceId())
            .toString();
    }
}
